#ifndef MUSICLIST_H
#define MUSICLIST_H
#include <vector>
using namespace std;

#include "music.h"
#include <QMediaPlaylist>

class MusicListWidget;

class MusicList
{
    vector<Music> songs;

public:
    MusicList();
    MusicList(const QList<QUrl>&urls);

    void addMusic(const QList<QUrl>&urls);

    Music getMusic(int pos);

    void addToPlayList(QMediaPlaylist *mediaPlayList);

    void addToMusicListWidget(MusicListWidget * musicListWidget);

    void removeMusic(int pos);

    void clear();

};

#endif // MUSICLIST_H
